package com.chance.cc.crawler.development.command.node.duapp;

import com.chance.cc.crawler.core.downloader.HttpPage;
import com.chance.cc.crawler.development.command.job.domain.du.DUCommonCrawlerScheduleJob;
import com.chance.cc.crawler.development.command.node.CrawlerNodeCommand;
import org.junit.Test;

public class DuappCrawlerNodeOperator {
    private static final String domain = "du_app";
    private static final CrawlerNodeCommand crawlerNodeCommand = new CrawlerNodeCommand("192.168.1.217",9505);

    public static void main(String[] args) {
        HttpPage httpPage = crawlerNodeCommand.killCrawler(DUCommonCrawlerScheduleJob.crawlerSchduler());
        System.out.println("Kill Job : " + httpPage.getRawText());
    }

    @Test
    public void nodeStatus(){
        HttpPage httpPage = crawlerNodeCommand.nodeStatus();
        System.out.println(httpPage);
    }
}
